package com.szh.taobaounion.utils;

import com.szh.taobaounion.Presenter.impl.ICatregoryPagerPresentImpl;
import com.szh.taobaounion.Presenter.impl.HomePresenterImpl;
import com.szh.taobaounion.Presenter.impl.ISelectedPagePresenterImpl;
import com.szh.taobaounion.Presenter.impl.ISellPagePresenterImpl;
import com.szh.taobaounion.Presenter.impl.SearchPresenter;
import com.szh.taobaounion.Presenter.impl.TicketPresenterImpl;

public class PresenterManager {
    private static final PresenterManager ourInstance = new PresenterManager();
    private final ICatregoryPagerPresentImpl mCatregoryPagerPresent;
    private final HomePresenterImpl mHomePresenter;
    private final TicketPresenterImpl mTicketPresenter;
    private final ISelectedPagePresenterImpl mSelectedPagePresenter;
    private final ISellPagePresenterImpl mSellPagePresenter;
    private final SearchPresenter mSearchPresenter;

    public ISellPagePresenterImpl getmSellPagePresenter() {
        return mSellPagePresenter;
    }

    public SearchPresenter getmSearchPresenter() {
        return mSearchPresenter;
    }

    public ISelectedPagePresenterImpl getmSelectedPagePresenter() {
        return mSelectedPagePresenter;
    }

    public TicketPresenterImpl getmTicketPresenter() {
        return mTicketPresenter;
    }

    public HomePresenterImpl getmHomePresenter() {
        return mHomePresenter;
    }

    public ICatregoryPagerPresentImpl getmCatregoryPagerPresent() {
        return mCatregoryPagerPresent;
    }

    public static PresenterManager getInstance() {
        return ourInstance;
    }

    private PresenterManager() {
        mCatregoryPagerPresent = new ICatregoryPagerPresentImpl();
        mHomePresenter = new HomePresenterImpl();
        mTicketPresenter = new TicketPresenterImpl();
        mSelectedPagePresenter = new ISelectedPagePresenterImpl();
        mSellPagePresenter = new ISellPagePresenterImpl();
        mSearchPresenter = new SearchPresenter();
    }

}
